<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

	zenlike1.0 by nodethirtythree design
	http://www.nodethirtythree.com

-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>CodeIgniter To do List Application</title>

<meta name="keywords" content="" />
<meta name="description" content="" />
<base href= <?php echo "$base"; ?> ?>
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$css";?>">
<!--<link rel="stylesheet" type="text/css" href="default.css" /> -->
</head>
<body>
<div id="upbg"></div>

<div id="outer">


	<div id="header">
		<div id="headercontent">
			<h1>Zenlike<sup>1.0</sup></h1>
			<h2>A free design by NodeThirtyThree</h2>
		</div>
	</div>


	<form method="post" action="">
		<div id="search">
			<input type="text" class="text" maxlength="64" name="keywords" />
			<input type="submit" class="submit" value="Search" />
		</div>
	</form>


	<div id="headerpic"></div>

	
	<div id="menu">
		<!-- HINT: Set the class of any menu link below to "active" to make it appear active -->
		<ul>
			<li><a href="#">Home</a></li>
			<li><a href="#" class="active">News</a></li>
			<li><a href="#">Blog</a></li>
			<li><a href="#">Gallery</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Contact</a></li>
		</ul>
	</div>
	<div id="menubottom"></div>

	
	<div id="content">

		<!-- Normal content: Stuff that's not going to be put in the left or right column. -->
		<div id="normalcontent">
			<h1>Welcome to CodeIgniter To Do List Application!</h1>

			<div class="contentarea">
				<!-- Normal content area start -->

				<img src="images/pic1.jpg" class="left" alt="A chinese lion statue" />
				<h2> The current to do list is: </h2>
				<p>
				<!-- Normal content area end -->
					<?php if($todo_list): ?>
					<ul>
						<?php foreach($todo_list as $todo): ?>
						<li><h4><?php echo $todo->name ?></h4>
						<?php if($todo->description): ?><p><h4><?php echo $todo->description ?></h4></p><?php endif ?>
						    <p><?php echo anchor("todo/delete/$todo->id", 'delete'); ?> | <?php echo anchor("todo/complete/$todo->id", 'mark as complete'); ?></p>
						</li>
						<?php endforeach ?>
					</ul>
					<?php else: ?>
					None
					<?php endif ?>
					 
				<p>	 
					<h2>The completed to do list is :</h2>
					<?php if($completed_list): ?>
					<ul>
						<?php foreach($completed_list as $todo): ?>
						<li><h4><?php echo $todo->name ?></h4>
						<?php endforeach ?>
					</ul>
					<?php else: ?>
					None
					<?php endif ?>
			<br>
			<br>
			<?php echo anchor('todo/add/','Add new to do', array('title' => 'Add new to do!')); ?>
			<p><?php echo $flash_message ?></p>

			</div>
		</div>

	</div>

	<div id="footer">
			<div class="left">&copy; 2006 Your Website Name. All rights reserved.</div>
			<div class="right">Design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a></div>
	</div>
	
</div>

</body>
</html>